//package test.json;
//
//import java.io.IOException;
//import java.lang.reflect.Type;
//
//import com.alibaba.fastjson.serializer.JSONSerializer;
//import com.alibaba.fastjson.serializer.ObjectSerializer;
//
//import test.json.Test.TypeEnum;
//
//public class TypeSerializer implements ObjectSerializer {
//	@Override
//	public void write(JSONSerializer serializer, Object object, Object fieldName, Type fieldType, int features)
//			throws IOException {
//		int type = (int) object;
//		serializer.write(TypeEnum.getEnumByCode(type).getDesc());
//	}
//}